package org.peerjs.sig;

import java.io.IOException;

public abstract class AbstractWebSocketClient {
    protected IWebSocketClientListener<String> listener;

    protected AbstractWebSocketClient(IWebSocketClientListener<String> listener) {
        this.listener = listener;
    }

    public abstract void send(byte[] bytes);

    public abstract void send(String message);

    public abstract void close();

    public abstract void reconnect();

    public abstract void connect(String wsUrl) throws IOException;

}
